import request from '@/utils/requestUtil'

// 用户提交留言
export function saveComments(data) {
	return request({
		method: 'POST',
		url: '/health/postscomments',
		header: {
			'content-type': 'application/json;charset=utf-8'
		},
		data: data
	})
}

// 根据帖子ID获取相关的留言
export function getCommentsByPostsId(postsId) {
	return request({
		method: 'GET',
		url: '/health/postscomments/getCommentsByPostsId/' + postsId,
		header: {
			'content-type': 'application/json;charset=utf-8'
		}
	})
}